﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
//引入命名空间
using stwh_Model;
using stwh_BLL;
using stwh_Common;

namespace stwh_Web.extend.huodong
{
    public partial class index : System.Web.UI.Page
    {
        public string stoptime = "";
        public List<stwh_cjresult> ListData = new List<stwh_cjresult>();

        protected void Page_Load(object sender, EventArgs e)
        {
            String userAgent = Request.UserAgent;
            if (userAgent.IndexOf("MicroMessenger") <= -1)
            {
                Response.Write("请在微信浏览器中打开！！");
                Response.End();
            }
            INIFile inifile = new INIFile(System.Web.HttpRuntime.AppDomainAppPath + "config/activity.ini");
            stoptime = inifile.IniReadValue("activity", "key");

            //获取今日中奖用户数据
            ListData = new stwh_cjresultBLL().GetModelList("CONVERT(varchar(300),stwh_cjraddtime,120) like '" + DateTime.Now.ToString("yyyy-MM-dd") + "%' order by stwh_cjrid desc");
        }
    }
}